﻿using Fluffy.Library.DocumentContainer;
using System.Windows;
using System.Windows.Controls;

namespace Fluffy.AppMenu
{
	public class MenuStyleSelector : StyleSelector
	{
		public Style SeparatorStyle { get; set; }
		public Style CommandStyle { get; set; }

		public override Style SelectStyle(object item, DependencyObject container)
		{
			if (item is SeparatorItem)
				return SeparatorStyle;
			if (item is CommandItem)
				return CommandStyle;

			return null;
		}
	}

}
